<?php
require('libs/Smarty.class.php');

class Smarty_Kalender extends Smarty {
   function __construct(){ 
      parent::__construct();  
        
        $this->caching = false;
        $this->assign('app_name', 'Kalender');
        $this->assign('uri_prod', '');
        $this->assign('uri_local', '/kalender');
        $this->assign("facturacion_habilitada", true);
        $this->assign("facturacion_habilitada_clientes", false);
        
	    if ($_SERVER['SERVER_NAME'] == 'localhost'){
		    $this->assign('URL_ROOT', '/kalender');
		    $this->template_dir = $_SERVER['DOCUMENT_ROOT'].'\kalender\templates';
	        $this->compile_dir  = $_SERVER['DOCUMENT_ROOT'].'\kalender\templates_c';
	        $this->config_dir   = $_SERVER['DOCUMENT_ROOT'].'\kalender\configs';
	        $this->cache_dir    = $_SERVER['DOCUMENT_ROOT'].'\kalender\cache';
	        $this->assign('URL_GLOBALS', $_SERVER['DOCUMENT_ROOT'].'/kalender/globals');	        
		}else{
			$path111 = "/www/kalender.com.ar/htdocs/";
			//$path111 = "/www/elninobuenosaires.com.ar/htdocs/kalender/"";
		    $this->assign('URL_ROOT', "");
		    $this->template_dir = $path111."templates";
	        $this->compile_dir  = $path111."templates_c";
	        $this->config_dir   = $path111."configs";
	        $this->cache_dir    = $path111."cache";
	        $this->assign('URL_GLOBALS', $path111."globals");
		}
        define("URI_L", "/kalender");
		define("URI_P", "");
   }
}

?>
